package com.ylb.rent.service;

import com.ylb.rent.entity.Permission;
import com.ylb.rent.entity.RolePermission;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/6/28 21:51
 */
@Service
public interface IPermissionService {

    List<Permission> getAll();
    List<Permission> getListByRoleId(long roleId);
    int insert(Permission permission);
    int updateRolePermission(RolePermission rolePermission);
    int update(Permission permission);
}
